package com.qut.qut_01.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface selfInfMapper {
    @Insert("insert into selfInf" +
            "(loginName,loginPwd," +
            "userSex,userName,userEmail," +
            "userBirthday,userWOrk)" +
            "values(#{loginName},md5(#{loginPwd}),#{userSex},#{userName},#{userEmail},#{userBirthday},#{userWOrk})")
    int save(Map<String,String> param);

    List<Map<String,Object>> search(Map<String,String> param);
}
